package com.garlic.face.jlf.transaction.shop;

/**
 * Created by lyq on 2018/5/31.
 * Email: lyqcy1337@163.com
 * 支付相关参数
 */

public class PayInfo {

    private static PayInfo payInfo = null;

    public static PayInfo getInstance() {
        if (null == payInfo) {
            synchronized (PayInfo.class) {
                if (null == payInfo) {
                    payInfo = new PayInfo();
                }
            }
        }
        return payInfo;
    }

    /**
     * 清除交易信息
     */
    public void clearPayData() {
        payNumber = "";
        orderId = "";
        deliveryMoney = "";
        downImageMessage = "";
        upImageMessage = "";
    }

    private String payNumber = "";
    private String orderId = ""; // 订单号
    private String deliveryMoney = ""; // 微东配送费用
    private String downImageMessage = ""; // 微东二维码下方提示信息
    private String upImageMessage = ""; // 微东二维码上方提示信息

    public String getPayNumber() {
        return payNumber;
    }

    public void setPayNumber(String payNumber) {
        this.payNumber = payNumber;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getDeliveryMoney() {
        return deliveryMoney;
    }

    public void setDeliveryMoney(String deliveryMoney) {
        this.deliveryMoney = deliveryMoney;
    }

    public String getDownImageMessage() {
        return downImageMessage;
    }

    public void setDownImageMessage(String downImageMessage) {
        this.downImageMessage = downImageMessage;
    }

    public String getUpImageMessage() {
        return upImageMessage;
    }

    public void setUpImageMessage(String upImageMessage) {
        this.upImageMessage = upImageMessage;
    }
}
